<template>
  <ul>
    <!-- <li>消息编号：{{ $route.params.id }}</li>
    <li>消息标题：{{ $route.params.title }}</li>     -->

    <!-- <li>props参数:a-{{ a }}</li>
    <li>props参数:a-{{ b }}</li> -->

    <li>消息编号：{{ id }}</li>
    <li>消息标题：{{ title }}</li>
  </ul>
</template>

<script>
import {onMounted} from 'vue'
export default {
    name:'Detail',
    // props:['a','b'],
    props:['id','title'],
    setup(){
        onMounted(()=>{
            console.log('@@@', this)
        })
    }

}
</script>

<style>

</style>